<template>
    <div class="public" @click="$emit('handhides')">
        <swiper :options="swiperOption">
          <swiper-slide v-for="(item,index) of listgallery" :key="index">
            <img :src="item">
          </swiper-slide>
          <div class="swiper-pagination" slot="pagination"></div>
        </swiper>
    </div>
</template>

<script>
export default { //  组件配置项
  name: '',
  props: {
    listgallery: Array
  },
  data () {
    return {
      swiperOption: {
        pagination: {
          el: '.swiper-pagination',
          type: 'fraction'
        }
      }
    }
  }
}
</script>

<style lang="stylus" scoped="scoped">
  .public
    position fixed
    display flex          //弹性布局
    align-items center
    top 0
    bottom 0
    left 0
    right 0
    background #000000
    z-index 1000
    img
      width 100%
   .swiper-pagination
      color white
      z-index 15
</style>
